package com.c3w.synchro.common.validation;

import com.c3w.synchro.common.validation.event.ValidationFailedException;

/**
 * User: P. Lalonde
 * Date: 12-05-30
 */
public interface Validator<B> {
    /**
     * Validation d'un bean.
     *
     * @param bean Le bean à valider.
     * @throws ValidationFailedException En cas d'échec de validation.
     */
    void validate(B bean) throws ValidationFailedException;
}
